package com.xbongbong.pro.decisiontree.pojo.dto;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.decisiontree.pojo.DecisionTreeLogPojo;
import com.xbongbong.pro.decisiontree.pojo.DecisionTreePojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * 保存决策树
 *
 * @Author: hongxiao
 * @date: 2021-11-20 18:09
 */
@Getter
@Setter
@ToString
public class DecisionTreeSaveDTO extends BaseDTO {
    private static final long serialVersionUID = 6252745740650836588L;

    /**
     * 业务类型
     */
    private Integer businessType;
    /**
     * 业务表单id
     */
    @NotNull(message = "{dto.msg.decisionTreeSave.formId.NotNull}")
    private Long formId;
    /**
     * 数据id
     */
    @NotNull(message = "{dto.msg.decisionTreeSave.dataId.NotNull}")
    private Long dataId;
    /**
     * 最后更新时间
     */
    private Long lastUpdateTime;
    /**
     * 决策树信息
     */
    @Size(max = 200, message = "{dto.msg.decisionTreeSave.decisionTree.Size}")
    private List<DecisionTreePojo> decisionTree;
    /**
     * 左侧外部联系人ids（客户没有外部联系人）
     */
    private List<Long> leftExternalContactIds;
    /**
     * 操作日志
     */
    private DecisionTreeLogPojo logData;
}
